FROM hub.smart.orhoncloud.com/library/openjdk:8-jre-alpine
MAINTAINER XuYS (xys@orhonit.com)
RUN echo "http://mirrors.aliyun.com/alpine/latest-stable/main/" > /etc/apk/repositories
RUN echo "http://mirrors.aliyun.com/alpine/latest-stable/community/" >> /etc/apk/repositories
ENV NAME World
RUN apk add --no-cache tzdata
ENV TZ Asia/Shanghai

COPY target/smartcampus-1.0-SNAPSHOT.jar /smartcampus-1.0-SNAPSHOT.jar
EXPOSE 8011

RUN mkdir -p /data/logs
ENTRYPOINT ["java","-Xms64m","-Xmx256m","-Xmn64m", "-jar", "/smartcampus-1.0-SNAPSHOT.jar",">","/data/logs/runtime.log" ]
